From b4d3d851f125cfeb0ad831d82a2a79466ead0667 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 20 Apr 2026 12:22:48 +0200 Subject: [PATCH] endSessionDialog: Prepare updates also in the "Restart & Install" dialog The current code expects a checkbox to confirm update installation to be present, but when the updates are already scheduled, it did not confirm the actual user action for the update, aka to reboot the machine, instead of using the previously set update action, which could be Power Off. Part-of: --- js/ui/endSessionDialog.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js index 84da30558..e803785d7 100644 --- a/js/ui/endSessionDialog.js +++ b/js/ui/endSessionDialog.js @@ -491,6 +491,8 @@ class EndSessionDialog extends ModalDialog.ModalDialog { } else { await this._triggerOfflineUpdateCancel(); } + } else if (this._type === DialogType.UPDATE_RESTART && (this._updatePrepared || this._updateScheduled)) { + await this._setPostUpdateAction(OFFLINE_UPDATE_ACTION_REBOOT); } this._fadeOutDialog(); -- 2.39.5